package cn.ck.springcloud.mapper;

import cn.ck.springcloud.entity.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper //或在主启动类上使用@MapperScan注解
@Repository
public interface ProductMapper {
    Product findById(Long pid);

    List<Product> findAll();

    boolean addProduct(Product product);
}